<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <!-- 读取 $route.meta.isHidden 的值 控制显示和隐藏组件 -->
    <Footer v-show="!$route.meta.isHidden"></Footer>
  </div>
</template>

<script>

import Header from '@/components/Header'
import Footer from '@/components/Footer'


export default {
  name: 'App',
  components:{
    Header,
    Footer,
  },
  mounted(){
    // console.log(this.$route);
  }
}
</script>

<style lang="less" scoped>

</style>

